# -*- coding:utf-8 -*-

from django.urls import path, re_path
from rest_framework.routers import SimpleRouter

from Apps.UITest.views.nodeConfigView import NodeConfigView
from Apps.UITest.views.uiCaseLogView import UiCaseLogView, DeleteUiCaseLogView
from Apps.UITest.views.uiCaseView import UiCaseView, saveCaseFileView, runUiCaseView, DeleteUiCaseView

route = SimpleRouter()
# 企业
route.register("uiCase", UiCaseView, basename="uiCase")
route.register("uiCaseLog", UiCaseLogView, basename="uiCaseLog")
route.register("nodeConfig", NodeConfigView, basename="nodeConfig")
urlpatterns = [
                  path('saveUiCaseFile/', saveCaseFileView.as_view()),
                  path('runUiCase/', runUiCaseView.as_view()),
                  path('deleteUiCase/', DeleteUiCaseView.as_view()),
                  path('deleteUiCaseLog/', DeleteUiCaseLogView.as_view()),

              ] + route.urls
